package com.xq.hibernate.sboot.repository;

import com.xq.hibernate.sboot.entity.Customer;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * 功能说明: 客户实体类的Repository接口.<p>
 * By extending CrudRepository, CustomerRepository inherits several methods for working with Customer persistence, including methods for saving, deleting, and finding Customer entities.</p>
 * <p>创建时间: 2018-10-18 17:39</p>
 *
 * @author 郭凯强
 * @version 1.0-SNAPSHOT
 */
public interface CustomerRepository extends CrudRepository<Customer,Long> {
    List<Customer> findByLastName(String lastName);
}
